package com.zzzyh;

import com.zzzyh.config.SpringCofiguration;
import com.zzzyh.service.impl.UserServiceImpl;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.util.ResourceBundle;

public class Main {
    public static void main(String[] args) {
        ApplicationContext context = new AnnotationConfigApplicationContext(SpringCofiguration.class);
        UserServiceImpl userService = (UserServiceImpl)context.getBean("userService");
        userService.save();
    }
}

